home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
lay_wgtb.ipb
< prev
next >
Wrap
Text File
|
1993-08-23
|
2KB
|
70 lines
inst3.1 ! Feb 7 1989
!****************************************************************
!* *
!* Bar chart of weights between two layers *
!* *
!****************************************************************
!
! This script builds an instrument which displays the
! weights between two layers as a bar chart
!
@Vars NDSP !Prompt for layers and position
@NrLX !Get layer index of near PE
?NPEl 0
>blt laberr
@SlLX !Get layer index of selected PE
?SPEl 0
>bge lab0
:laberr
@Err "Non-constant source and destination layers required"
:lab0
=PNam NPEl !Write source layer number to name
+PNam "->"
+PNam SPEl !Append destination layer number to name
@PbAS !Add Probe
?PbSt 0 !Check status of probe
>beq lab3 !Already there, don't add component
@PALC !Add Layer Connection to probe
:lab3
! *** Build Instrument ***
@ILdD !load default instrument
=ITit "Layer " !Instrument title
+ITit NPEl !Append source layer number to title
+ITit "->" !Instrument title
+ITit SPEl !Append destination layer number to title
=Ivmn &vmn
=Ivmx &vmx
=LayN NPEl !Pointed to (source) layer
@LLly !Load it
=n0 Lpes !number of PEs in pointed to layer
=LayN SPEl !Selected (destinataion) layer
@LLly !Load it
=n1 Lpes !number of PEs in selected layer
=Ignx n0
=n2 0
=n3 n1
! n2 = n0 * n1:
:labloop
+n2 n0
-n3 1
?n3 0
>bgt labloop
=Inpl n2
! height and width:
=f0 n0
=f1 n1
/f0 0.05
/f1 0.07
=Iwdt f0 !Width of graph
=Ihgt f1 !height of graph
=IGVr "Weight"
=IGTy "Bar"
=ITMd 0 !No transformation
=IRcA 0 !Not active in recall
=ILDv 10 !Every 10 iterations
=IPrb PNam !Point to probe
@IAdd !Now create instrument